/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.project;

import java.util.List;

import com.idenger.modules.edu.dao.project.EduProjectCourseDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.project.EduProjectCourse;

/**
 * 项目课程关联Service
 * @author chenlin
 * @version 2017-12-04
 */
@Service
@Transactional(readOnly = true)
public class EduProjectCourseService extends CrudService<EduProjectCourseDao, EduProjectCourse> {

	public EduProjectCourse get(String id) {
		return super.get(id);
	}
	
	public List<EduProjectCourse> findList(EduProjectCourse eduProjectCourse) {
		return super.findList(eduProjectCourse);
	}
	
	public List<EduProjectCourse> courseIfBelongToProjectByCourseId(EduProjectCourse eduProjectCourse) {
		return dao.courseIfBelongToProjectByCourseId(eduProjectCourse);
	}
	
	
	public Page<EduProjectCourse> findPage(Page<EduProjectCourse> page, EduProjectCourse eduProjectCourse) {
		return super.findPage(page, eduProjectCourse);
	}
	
	@Transactional(readOnly = false)
	public void save(EduProjectCourse eduProjectCourse) {
		super.save(eduProjectCourse);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduProjectCourse eduProjectCourse) {
		super.delete(eduProjectCourse);
	}
	
}